import React, { Component } from 'react';
import './App.css';

class App extends Component {



  render() {

      function tick() {
          const element = (
              <div>
                  <h2>It is {new Date().toLocaleTimeString()}.</h2>
              </div>
          );
      }setInterval(tick, 1000);

    return (
      <div className="App">
        <body className="App-header">
            <h1>你</h1>

            <div>
                <h2>It is {new Date().toLocaleTimeString()}.</h2>
            </div>
        </body>

      </div>
    );

  }
}

export default App;
